package com.wuhao.springbootasynctask.async;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: wuhao
 * @since: 2021/5/2 16:48
 */
@Controller
public class AsyncController {

     @Autowired
     private AsyncService asyncService;

     @RequestMapping("/helloAsync")
     @ResponseBody
     public String HelloAsync(){

         asyncService.HelloAsync();

         return "YES";
     }
}
